<?=$this->render('header.phtml') ?>

<?=$this->render('logo.phtml') ?>

<?=$this->render('sidelist.phtml') ?>

<div class="password_view">
<h4><?= $this->summary ?></h4>
<table cellpadding="0" cellspacing="0">
 <tr>
  <td class="left_col">Username:</td>
  <td><span><?=$this->username ?></span></td>
 </tr>
 <tr>
  <td class="left_col">Password:</td>
  <td><span>
  <?php if (!isset($_GET['reveal'])): ?>
<?php for($i = 1; $i <= strlen($this->password); $i++): ?>
<?php if ($i > floor((strlen($this->password) * 0.5)) && isset($_GET['revealpart'])): ?>
<?= $this->password[$i - 1] ?>
<?php else: ?>
     <img src="/images/mask.png" alt="*">
<?php endif; ?>
<?php endfor; ?>
  <?php if (isset($_GET['revealpart'])): ?>
   <a class="txtcmd" href="<?= $this->url(array('uid' => $this->uid), 'viewpass') ?>">&gt;&gt;</a>
  <?php else: ?>
   <a class="txtcmd" href="?revealpart">&lt;&lt;</a>
  <?php endif; ?>
   <a class="txtcmd" href="?reveal" title="Reveal Password">Reveal</a>
  <?php else: ?>
   <?= $this->password ?>  <a class="txtcmd" href="<?= $this->url(array('uid' => $this->uid), 'viewpass') ?>">Mask</a>
  <?php endif; ?>
  </span></td>
 </tr>
 <tr>
  <td class="left_col">Web site:</td>
  <td><span><?=$this->website ?></span></td>
 </tr>
 <tr>
  <td class="left_col">Notes:</td>
  <td><span><?=$this->notes ?></span></td>
 </tr>
</table>

</div>

<div class="controlset">
<a href="<?= $this->url(array('action' => 'edit', 'uid' => $this->uid), 'passwordadmin') ?>" title="Edit"><img src="/images/edit.png" alt="Edit"></a> <a href="<?= $this->url(array('action' => 'delete', 'uid' => $this->uid), 'passwordadmin') ?>" title="Delete"><img src="/images/delete_red.png" alt="Delete"></a> <a href="/" title="Add"><img src="/images/add.png" alt="Add"></a>
</div>


<?=$this->render('footer.phtml') ?>